]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st: Use clutter_actor_pick() in pick
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 17 Oct 2019 14:59:13 +0000 (16:59 +0200)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 21 Oct 2019 13:53:56 +0000 (13:53 +0000)
Use the new function to perform picking and avoid
going through any painting-related code paths.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/773

src/st/st-box-layout.c
src/st/st-scroll-view.c

index 31a8ed118be808322b28d0d44d057b190acd1443..0f02a478be8a4bcc6c60955e8d583f6a2833ff22 100644 (file)
@@ -489,7 +489,7 @@ st_box_layout_pick (ClutterActor *actor)
   for (child = clutter_actor_get_first_child (actor);
        child != NULL;
        child = clutter_actor_get_next_sibling (child))
-    clutter_actor_paint (child);
+    clutter_actor_pick (child);
 
   if (priv->hadjustment || priv->vadjustment)
     cogl_framebuffer_pop_clip (fb);
index 3e5e24eba131a1082c1290fb1fd107de150e4512..029e4a356d0045c915813c187d261281f1597f46 100644 (file)
@@ -302,11 +302,11 @@ st_scroll_view_pick (ClutterActor *actor)
   CLUTTER_ACTOR_CLASS (st_scroll_view_parent_class)->pick (actor);
 
   if (priv->child)
-    clutter_actor_paint (priv->child);
+    clutter_actor_pick (priv->child);
   if (priv->hscrollbar_visible)
-    clutter_actor_paint (priv->hscroll);
+    clutter_actor_pick (priv->hscroll);
   if (priv->vscrollbar_visible)
-    clutter_actor_paint (priv->vscroll);
+    clutter_actor_pick (priv->vscroll);
 }
 
 static gboolean